package crivia.eca.common;

public class WorkFlowBrowser {
	
	private WorkFlowBrowser(){}
	
	public static String buildSQL(String id , String text , String desc , String table , String cd){
		return "Select " + id + " , " + text + " , " + desc
				+ " from " + table + " where 1=1 " + cd
			+ "\n" + "Select " + text + " , " + desc
				+ " from " + table + " where " + id + " = ? " + cd
			+ "\n" + "Select " + id + " , " + text + " , " + desc
				+ " from " + table + " where " + text + " like ? or " + desc + " like ? " + cd;
	}

}
